package com.flca.frw.model
{
	import com.flca.frw.util.PrintUtil;
	
	public class ExceptionDetailInfo 
	{
		public var code:String;
		public var args:Array;
		
		public function ExceptionDetailInfo(aCode:String, aArgs:Array = null):void
		{
			code = aCode;
			
			if (aArgs != null)
			{
				args = aArgs;
			}
			else
			{
				args = new Array();
			}
		}
		
		public function toString():String
		{
			var result:String;
			
			result = "{";
			result += "code=" + code + ";";
			result += "args=" + PrintUtil.arrayAsString(args);
			result += "}";
			
			return result;
		}
	}
}